package com.kaifa.test;

public class IfDemo {
    public static void main(String[] args) {
        /*int num = 9;
        int num2 = 4;
        String str = "初始值";
        if(num == 0 && num2 ==0){
            str = "零";
        }else if(num == 1 && num2 ==1){
            str = "壹";
        }else if(num == 2 && num2 ==2){
            str = "贰";
        }else if(num == 3 && num2 ==3){
            str = "叁";
        }else if(num == 4 && num2 ==4){
            str = "肆";
        }else if(num == 5){
            str = "伍";
        }else if(num == 6){
            str = "陆";
        }else if(num == 7){
            str = "柒";
        }else if(num == 8){
            str = "捌";
        }else if(num == 9){
            str += "玖";
        }else if(num == 10){
            str = "拾";
        }else{
            str = "没有";
        }
        System.out.println(str);
        System.out.println("你好");*/

        /*int i = 30;
        System.out.println("i=i+10的结果是"+(i+=10));
        System.out.println(i);
        System.out.println("i=i-12的结果是"+(i-=12));*/

        int num3 = 4;
        String str2 = "";
        switch (num3){
            case 0:
                str2="走上路";
                break;
            case 1:
                str2="走中路";
                break;
            case 2:
                str2="走下路";
                break;
            case 3:
                str2="打野";
                break;
            case 4:
                str2="辅助";
                break;
            default:
                str2="胜利";
        }
        System.out.println(str2);

    }


}
